

//
//  TestViewController.m
//  didihaha
//
//  Created by 赵忠鹏 on 2017/8/22.
//  Copyright © 2017年 zhaozhongpeng. All rights reserved.
//

#import "TestViewController.h"
#import "DidiMainLeftView.h"
#import "Masonry.h"
#import "selectedCarTypeView.h"

@interface TestViewController ()

@property (nonatomic, strong)DidiMainLeftView *leftMoreView;

@property (nonatomic, strong)selectedCarTypeView *selectedView;

@end

@implementation TestViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor lightGrayColor];
//    self.navigationController.navigationBar.hidden = YES;
//    
//    [self.view addSubview:self.leftMoreView];
//    [self.leftMoreView mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.top.bottom.equalTo(self.view);
//        make.left.equalTo(self.view.mas_left);
//        make.width.mas_equalTo(self.view.bounds.size.width/2);
//    }];
    
    [self.view addSubview:self.selectedView];
    
    [self.selectedView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self.view);
        make.width.mas_equalTo(100);
        make.height.mas_equalTo(40);
    }];
    
    
}


- (selectedCarTypeView *)selectedView{
    if (_selectedView == nil) {
        _selectedView = [[selectedCarTypeView alloc] init];
    }
    return _selectedView;
}

- (DidiMainLeftView *)leftMoreView{
    if (_leftMoreView == nil) {
        _leftMoreView = [[DidiMainLeftView alloc] init];
    }
    return _leftMoreView;
}

@end
